<template>
	<div class="edit fr">
		<p @touchend='edit'>{{ finish }}</p>
	</div>
</template>

<script>
	export default{
		props:['bol'],
		data(){
			return{
				finish_bol:this.bol,
			}
		},
		methods:{
			edit:function(){
				this.finish_bol = !this.finish_bol;
			}
		},
		computed:{
			finish:function(){
				return this.finish_bol?'完成':'编辑';
			}
		}
	}
</script>

<style>
	
</style>